/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 金牛座
 */

// 登录
export const getLogin = "http://m.q22q22.com/buyer/login/loginByPwd"
// 获取账号
export const getBindInfo = "http://m.q22q22.com/buyer/info/getBindInfo"
// 获取任务
export const getAllocation = "http://m.q22q22.com/buyer/order/allocation"
// 取消接单
export const cancelOrder = "http://m.q22q22.com/buyer/order/cancel"

export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: {
            "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
        },
        dataType: 'json',
        returnAll: false,
        async: false,
        data: {
            values: param.data
        }
    }, fun)
}